home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 24 / PC Gamer IT CD 24 2-2.iso / OFFICE / howto / Tips.exe / RCDATA / CABINET / Tips.inf < prev    next >
Windows Setup INFormation  |  1997-02-25  |  3KB  |  111 lines

  1. [version]
  2. signature="$CHICAGO$"
  3. ;need to tell INFInstall to use ADVPACK.DLL-it implements CustomDestination
  4. AdvancedINF=2.5
  5.  
  6. [DestinationDirs] 
  7. ;>49000 indicates custom LDID
  8. contents=49002 
  9. ;17 is Windows\INF directory
  10. INFCopy=17
  11.  
  12. ;begin install logic
  13.  
  14. [DefaultInstall] 
  15. ;Win95 entry point
  16. CustomDestination=FileDest
  17. AddReg=PkgFiles,GenUninstallKey,Win95UninstallKey
  18. CopyFiles=contents,INFCopy
  19.  
  20. [DefaultInstall.NT]
  21. ;NT 4 entry point
  22. CustomDestination=FileDest
  23. CopyFiles=contents,INFCopy
  24. AddReg=PkgFiles,GenUninstallKey,NTUninstallKey
  25.  
  26. [contents]
  27. frmfield.doc
  28. headfoot.doc
  29. Lablgrph.doc
  30. MailMerg.doc
  31. ModifTem.doc
  32. styles.rtf
  33.  
  34. [INFCopy]
  35. ;copy INF to Windows\INF for uninstall
  36. Tips.inf
  37.  
  38. [FileDest]
  39. 49001=TemplPathKey,7
  40. 49002=BogusRegKey,5 
  41.  
  42. [TemplPathKey]
  43. "HKLM","SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir","",""
  44. "","","","%FailMsg%",""
  45.  
  46. [BogusRegKey]
  47. "HKLM","SOFTWARE\BogusApp\BogusKey","","","%49001%\%PubDir%"
  48.  
  49. [PkgFiles]
  50. HKLM,Software\Microsoft\Ork97\Tips,"InstallDir",,"%49002%" 
  51.  
  52. [GenUninstallKey]
  53. ;Reg key that puts entry in Add/Remove files CPL applet dialog
  54. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Tips,"DisplayName",,"%PackageDesc%" 
  55.  
  56. [Win95UninstallKey]
  57. ;call ADVPACK uninstaller on Win95
  58. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Tips,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\Tips.inf, Uninstall" 
  59.  
  60. [NTUninstallKey]
  61. ;call ADVPACK uninstaller on NT 4
  62. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Tips,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\Tips.inf, Uninstall.NT"  
  63.  
  64. ; begin uninstall logic
  65. [Uninstall]
  66. BeginPrompt=BeginPromptSection
  67. EndPrompt=EndPromptSection
  68. CustomDestination=FileDest
  69. Delfiles=contents
  70. Deldirs=RemoveFolder
  71. ;clean up uninstall keys
  72. DelReg=DelRegSection
  73. Cleanup=1
  74.  
  75. [Uninstall.NT]
  76. BeginPrompt=BeginPromptSection
  77. EndPrompt=EndPromptSection
  78. CustomDestination=FileDest
  79. Delfiles=contents
  80. Deldirs=RemoveFolder
  81. DelReg=DelRegSection
  82. Cleanup=1
  83.  
  84. [DelRegSection]
  85. HKLM,Software\Microsoft\Ork97\Tips
  86. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Tips
  87.  
  88. [BeginPromptSection]
  89. Prompt="%BeginPrompt%"
  90. ButtonType=YESNO
  91. Title=%PackageName%
  92.  
  93. [EndPromptSection]
  94. Prompt="%EndPrompt%"
  95.  
  96. [RemoveFolder]
  97. %49002%
  98.  
  99. [SourceDisksNames]
  100. 1 = "Tips",,0
  101.  
  102. [Strings]
  103. PubDir="Ork97\Word\Tips"
  104. PackageName="Word 97 How-to Documents"
  105. PackageDesc="Word 97 How-to Documents (Remove only)"
  106. FailMsg="You must have a local "Program Files" folder to install the file(s)."
  107.  
  108. ;prompts
  109. BeginPrompt="Are you sure that you want to remove Word 97 How-to Documents?"
  110. EndPrompt="The Word 97 How-to Documents was successfully removed."
  111.